The midpoint rule is an approximation method for integrals, its a member of 3 different approximation methods, named right endpoint, midpoint, and left endpoint rules).
You can read more about these rules in mat1225notes_written.
This method works by first dividing the region,
where
More info: